package state.practice_03;

import java.util.Scanner;

/**
 * @author yi qiang
 * @date 2021/6/15 17:39
 */
public class RunningState implements State{
    @Override
    public void handle() {
        System.out.println("请输入审批意见(运行):");
        Scanner scanner = new Scanner(System.in);
        System.out.println("审批意见为:"+scanner.nextLine());
    }

    @Override
    public State changeState() {
        return new StopState();
    }

    @Override
    public String toString() {
        return "RunningState{}";
    }
}
